package com.icbc.dataDisplayService.service;

import com.icbc.dataDisplayService.bean.Car;
import com.icbc.dataDisplayService.mapper.CarMapper;

import java.util.List;

public class CarDataServiceImpl implements CarDataService {
    private CarMapper carMapper;

    public void setCarMapper(CarMapper carMapper) {
        this.carMapper = carMapper;
    }

    public CarMapper getCarMapper() {
        return carMapper;
    }

    @Override
    public List<Car> selectAllCar() {
        return carMapper.selectAllCar();
    }

    @Override
    public int countAllCar() {
        return carMapper.countAllCar();
    }

    @Override
    public Car getCarDataById(int id) {
        return carMapper.getCarDataById(id);
    }
}
